package org.summerframework.component.upload.ftp;

import lombok.Getter;
import lombok.Setter;
import org.apache.commons.net.ftp.FTPClient;
import org.apache.commons.pool2.impl.GenericObjectPoolConfig;
import org.springframework.boot.context.properties.ConfigurationProperties;

import java.time.Duration;

/**
 * @author 石超
 * @version v1.0.0
 */
@Getter
@Setter
@ConfigurationProperties("spring.upload.ftp")
public class FtpProperties extends GenericObjectPoolConfig<FTPClient> {
    private String service;
    private Integer port = 21;
    private String account;
    private String password;
    private Duration connectTimeout = Duration.ofSeconds(30);
    private String path = "/";
}
